#pragma once
#include "afxcmn.h"


// CDlgEditLinks dialog

class CDlgEditLinks : public CDialog
{
	DECLARE_DYNAMIC(CDlgEditLinks)

public:
	CDlgEditLinks(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgEditLinks();
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	virtual void OnCancel();

	afx_msg void OnLvnItemchangedListLinks(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnLvnGetdispinfoListLinks(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnHdnItemclickListLinks(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnLvnOdfinditemListLinks(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnNMDblclkListLinks(NMHDR *pNMHDR, LRESULT *pResult);

// Dialog Data
	enum { IDD = IDD_DIALOG_EDIT_LINKS };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
	void FillList();

	LONG m_nStaffID;

	CArray<REQUEST_LINK> m_aLinksList;

	CListCtrl m_ctrlLinksList;
	CString m_szFilter;
	CString m_szSort;
	BOOL m_bSortAscending;
	INT m_nCurrentSort;
};
